package com.gome.ocean.service.webservice.permission;

import org.springframework.stereotype.Service;

import com.gome.ocean.dao.model.webservice.Model_Permissions;

@Service("permissionsServiceSoap")
public class PermissionsServiceSoapProxy implements com.gome.ocean.service.webservice.permission.PermissionsServiceSoap {
  private String _endpoint = null;
  private com.gome.ocean.service.webservice.permission.PermissionsServiceSoap permissionsServiceSoap = null;
  
  public PermissionsServiceSoapProxy() {
    _initPermissionsServiceSoapProxy();
  }
  
  public PermissionsServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initPermissionsServiceSoapProxy();
  }
  
  private void _initPermissionsServiceSoapProxy() {
    try {
      permissionsServiceSoap = (new com.gome.ocean.service.webservice.permission.PermissionsServiceLocator()).getPermissionsServiceSoap();
      if (permissionsServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)permissionsServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)permissionsServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (permissionsServiceSoap != null)
      ((javax.xml.rpc.Stub)permissionsServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.gome.ocean.service.webservice.permission.PermissionsServiceSoap getPermissionsServiceSoap() {
    if (permissionsServiceSoap == null)
      _initPermissionsServiceSoapProxy();
    return permissionsServiceSoap;
  }
  
  public com.gome.ocean.service.webservice.permission.InterfaceResult tranDataToOA(Model_Permissions model) throws java.rmi.RemoteException{
    if (permissionsServiceSoap == null)
      _initPermissionsServiceSoapProxy();
    return permissionsServiceSoap.tranDataToOA(model);
  }
  
  
}